<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@page import="com.cap.bts.framework.usermgnt.constant.EmployeeStatus"%>  
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="core" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>  
<core:set var ="webcontext" scope="request" value="${pageContext.request.contextPath}"/>
<core:set var ="imagepath" scope="request" value="${webcontext}/images"/>
<core:set var ="csspath" scope="request" value="${webcontext}/css"/>
<core:set var ="jspath" scope="request" value="${webcontext}/javascript"/>
<core:set var ="jsppath" scope="request" value="${webcontext}/jsp"/>
<core:set var ="htmlpath" scope="request" value="${webcontext}/html"/>
<core:set var ="bootstrapPath" scope="request" value="${webcontext}/bootstrap"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>报表查看</title>
<core:set var ="webcontext" scope="request" value="${pageContext.request.contextPath}"/>
<core:set var ="imagepath" scope="request" value="${webcontext}/images"/>
<script type="text/javascript" src="${jspath}/jquery/jquery-1.8.3.js"></script>

<core:set var ="csspath" scope="request" value="${webcontext}/css"/>
<core:set var ="jspath" scope="request" value="${webcontext}/javascript"/>
<core:set var ="jsppath" scope="request" value="${webcontext}/jsp"/>
<core:set var ="htmlpath" scope="request" value="${webcontext}/html"/>
<core:set var ="bootstrapPath" scope="request" value="${webcontext}/bootstrap"/>
<core:set var ="layerPath" scope="request" value="${webcontext}/layer"/>
<!-- TODO the gdms url should replace by the token -->
<core:set var ="gdmsurl" scope="request" value="@token-gdms.server.servlet.context.url.integration@"/>
<script type="text/javascript">
	var contextPath = "${webcontext}";
</script>
<%@page import="com.cap.bts.framework.common.util.Pager"%>
<%@page import="com.cap.bts.framework.common.constant.CommonConstants"%>
<%@page import="com.cap.bts.framework.common.util.CodeTextUtils"%>
<%@page import="com.cap.bts.framework.common.util.CookieUtils"%>
<%@page import="com.cap.bts.framework.auth.constant.AuthConstant"%>

<script type="text/javascript" src="${jspath }/../layer/layer.js"></script>
<link rel="stylesheet" type="text/css"	href="${bootstrapPath}/css/bootstrap.css" />
<style type="text/css">
* {
	margin: 0px;
	padding: 0px;
	font-size: 12px;
	font-family: sans-serif;
}
th{white-space:nowrap;color: #FFF; background:#00af4e;}
th,td{border: 1px solid #ddd; }
.encrypt{max-width:300px;word-wrap: break-word; word-break: normal; }
.normalXml{max-width:250px;word-wrap: break-word; word-break: normal; }
.search{text-align:center;padding:15px;}
.michelin-btn{background-color:#00af4e; color:#FFF; border:none;padding: 5px 15px;margin-left:20px;}
input{width:50px;font-weight:bold;text-align:center;}
</style>

<script type="text/javascript">
$(function(){
});
	 function showReport(id){	
			$("#report").find("div").hide();
			$("#"+id).css("display","block");
	 }	
</script> 
</head>
<body>
<%-- dealerId:${param.dealerId } --%>
				<input type="hidden" name="dealerId" value="${param.dealerId}">
				<div style="margin-top: 10px;margin-left: 10px;">
					<a href="javascript:showReport('inventory');" class="btn btn-success btn-m"
					style="margin-right: 5px">
					<i class="glyphicon glyphicon-credit-card" style="color: #FFFFFF"></i>库存报表</a>
					<a href="javascript:showReport('member');" class="btn btn-success btn-m"
					style="margin-right: 5px">
					<i class="glyphicon glyphicon-user" style="color: #FFFFFF"></i>会员报表</a>
					<a href="javascript:showReport('sales');" class="btn btn-success btn-m">
					<i class="glyphicon glyphicon-piggy-bank" style="color: #FFFFFF"></i>销售报表</a>
				</div>
				<div id="report" style="margin-top:15px">
				<div id="inventory" style="width:70%;height:600px;display:none;">
				<iframe style="width:100%;height:100%;" src="${webcontext}/crmdp/dealer/report/toQueryInventoryPage?dealerId=${param.dealerId}"></iframe>
				</div>
				<div id="member" style="width:70%;height:600px;display:none;">
				<iframe style="width:100%;height:100%;" src="${webcontext}/crmdp/dealer/report/toQueryMemberReport?dealerId=${param.dealerId}"></iframe>
				</div>
				<div id="sales" style="width:70%;height:600px;display:none;">
				<iframe style="width:100%;height:100%;" src="${webcontext}/crmdp/dealer/report/toQuerySalesReport?dealerId=${param.dealerId}"></iframe>
				</div>
				</div>

</body>
</html>